<?php /* Smarty version 2.6.16, created on 2011-10-31 11:58:42
         compiled from my_video.tpl */ ?>
<div id="paging"> 
<div class="right-panel">
      <h1 title="Videos"><span>My Favourite Videos</span></h1>
      
      <div class="clear"></div>
	  <?php if ($this->_tpl_vars['NumVideo'] > 0): ?>
	  <div class="game-list">
	   <?php unset($this->_sections['videoRow']);
$this->_sections['videoRow']['name'] = 'videoRow';
$this->_sections['videoRow']['loop'] = is_array($_loop=$this->_tpl_vars['VideoArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['videoRow']['show'] = true;
$this->_sections['videoRow']['max'] = $this->_sections['videoRow']['loop'];
$this->_sections['videoRow']['step'] = 1;
$this->_sections['videoRow']['start'] = $this->_sections['videoRow']['step'] > 0 ? 0 : $this->_sections['videoRow']['loop']-1;
if ($this->_sections['videoRow']['show']) {
    $this->_sections['videoRow']['total'] = $this->_sections['videoRow']['loop'];
    if ($this->_sections['videoRow']['total'] == 0)
        $this->_sections['videoRow']['show'] = false;
} else
    $this->_sections['videoRow']['total'] = 0;
if ($this->_sections['videoRow']['show']):

            for ($this->_sections['videoRow']['index'] = $this->_sections['videoRow']['start'], $this->_sections['videoRow']['iteration'] = 1;
                 $this->_sections['videoRow']['iteration'] <= $this->_sections['videoRow']['total'];
                 $this->_sections['videoRow']['index'] += $this->_sections['videoRow']['step'], $this->_sections['videoRow']['iteration']++):
$this->_sections['videoRow']['rownum'] = $this->_sections['videoRow']['iteration'];
$this->_sections['videoRow']['index_prev'] = $this->_sections['videoRow']['index'] - $this->_sections['videoRow']['step'];
$this->_sections['videoRow']['index_next'] = $this->_sections['videoRow']['index'] + $this->_sections['videoRow']['step'];
$this->_sections['videoRow']['first']      = ($this->_sections['videoRow']['iteration'] == 1);
$this->_sections['videoRow']['last']       = ($this->_sections['videoRow']['iteration'] == $this->_sections['videoRow']['total']);
?>
	    <?php $this->assign('a', $this->_sections['videoRow']['index']+1); ?>
         <div <?php if ($this->_tpl_vars['a']%3 == '0'): ?>class="games-replay-last"<?php else: ?>class="games-replay"<?php endif; ?>>
           <div class="replay-content" >
			  <!-- <a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['ReplayArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
">-->
			   <a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
" >
			   <img src="uploaded/video_images/thumbs/big_<?php echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['video_image']; ?>
" alt="" border="0" /></a>
			   
			   </div>
			   <div class="replay-content">
				  <div class="replay-title">
				  <a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
"><?php echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['video_title']; ?>
</a>
				  <br /><span class="date"><?php echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['video_date']; ?>
<br />
				  Duration : <?php if ($this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['time_length'] != ''):  echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['time_length']; ?>
 min<?php else: ?>N/A<?php endif; ?>
				  </span></div>
				  <div class="game-rating"><?php echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['star']; ?>
<br />
				  View Count : <?php echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['view_count']; ?>

				  </div>
                  <div class="replay-title" style="padding-top:0px; width:90%"><span class="date">Uploaded by <em><?php echo $this->_tpl_vars['VideoArr'][$this->_sections['videoRow']['index']]['user']; ?>
</em></span></div>
			   </div>
         </div>
		 <?php if ($this->_tpl_vars['a']%3 == '0'): ?><div class="clear"></div><?php endif; ?>
		 <?php endfor; endif; ?>
        <div class="clear"></div>
      </div>
      <?php if ($this->_tpl_vars['pagination_arr'][1]): ?>
      <div class="clear"></div>
      <div class="pagin">
         <ul>
             <?php echo $this->_tpl_vars['pagination_arr'][1]; ?>

         </ul>
      </div>
	 <?php endif; ?>
	 <?php else: ?>
	    No Video is found......
     <?php endif; ?> 
   </div>
</div>   